
# Compiler
CC=gcc

# Objects
OBJECTS=3DMath.o AnimObject.o App.o Camera.o ColorRGB.o DrawGL.o GeomObject.o ImageGL.o Lighting.o LightObject.o LoaderASE.o MapDiffuse.o Material.o Mesh.o MeshFace.o MeshFaceNormal.o MeshTface.o MeshTFaceList.o MeshTVertList.o MeshVertexNormal.o Scene.o SubMaterial.o TextureUVW.o Triangle.o Vertex.o

# Compiler flags
CPPFLAGS=-Wall `sdl-config --cflags`

# Linker flags
LDFLAGS=`sdl-config --libs` -lSDL -lGL -lGLU

main: App.cpp
	$(CC) $(CPPFLAGS) -c 3DMath.cpp AnimObject.cpp App.cpp Camera.cpp ColorRGB.cpp DrawGL.cpp GeomObject.cpp ImageGL.cpp Lighting.cpp LightObject.cpp LoaderASE.cpp MapDiffuse.cpp Material.cpp Mesh.cpp MeshFace.cpp MeshFaceNormal.cpp MeshTface.cpp MeshTFaceList.cpp MeshTVertList.cpp MeshVertexNormal.cpp Scene.cpp SubMaterial.cpp TextureUVW.cpp Triangle.cpp Vertex.cpp
	$(CC) $(OBJECTS) $(CPPFLAGS) $(LDFLAGS) -o Gens3

# cleanup
clean:
	rm -rf $(OBJECTS)

# EOF

